package com.hospital.billcommon.module.controller.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.hospital.common.core.module.entity.query.BillItem;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * @author lvyao
 * @description 明细医嘱项目
 * @date 2020/5/6
 */
@Data
public class ClinicItem {
    private String examNo;
    private String testNo;
    private String clinicItemCode;
    private double amount;
    private String drugSpec;
    private String priceCode;
    private String performedBy;
    private String itemSpec;
    private String itemClass;
    private String orderedBy;
    private String operatorNo;
    private String drugUnits;
    private String firmId;
    private String batchNo;
    @NotBlank(message = "医嘱项目所属就诊号不能为空")
    private String primaryNo;
    @NotBlank(message = "医嘱项目开单时间不能为空")
    private String primaryDate;
    private double costs;
    private double charges;
    List<BillItem> billItemList;
    //零售价
    @TableField(exist = false)
    private double retailPrice;
    //当前单价
    @TableField(exist = false)
    private double currentPrice;

    //四舍五入
    @TableField(exist = false)
    private double roundAmt;

    private String orderNo;
    private String OrderSubNo;
}
